﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.burry.services.UserService" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<%
	request.setCharacterEncoding("UTF-8");
	String man_name = request.getParameter("man_name");
	String address = request.getParameter("address");
	String man_tel = request.getParameter("man_tel");
	String man_code = request.getParameter("man_code");
	Map userInfo = (Map)session.getAttribute("userInfo");
	UserService us = new UserService();
	Integer id = (Integer)userInfo.get("id");
	
	us.addUserAddress(id,man_name,address,man_tel,man_code);
	
	response.sendRedirect("addressManage.jsp");
%>